<?php
class HeaderController extends Zend_Controller_Action
{
    public function init()
    {
        /* Initialize action controller here */
    }
    
    public function normalAction()
    {   
    	$auth = Zend_Auth::getInstance();
		$auth->setStorage(new Zend_Auth_Storage_Session( 'User'));
    	if ($auth->hasIdentity()) {
    		$logged = true;
    		$identity = $auth->getIdentity();
    		$this->view->identity = $identity;
    	} else {
    		$logged = false;
    	}
        $this->render('normal', 'header');
    }
    
    public function reduitAction()
    {
	    	$auth = Zend_Auth::getInstance();
			$auth->setStorage(new Zend_Auth_Storage_Session( 'Admin'));
    	if ($auth->hasIdentity()) {
    		$logged = true;
    		$identity = $auth->getIdentity();
    		$this->view->identity = $identity;
    	} else {
    		$logged = false;
    	}
        $this->render('reduit', 'header');
    }
    
    public function minimiserAction()
    {
        $this->render('minimise', 'header');
    }

   
}
